<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSP内置对象</title>
</head>
<body>
    <%
        String name = request.getParameter("name");
        System.out.println(name);

        // response.sendRedirect("test01.jsp");

        HttpServletRequest req = (HttpServletRequest) pageContext.getRequest();
        HttpServletResponse resp = (HttpServletResponse) pageContext.getResponse();
        System.out.println(req.getContextPath());

        System.out.println(session.getId());

        System.out.println(application.getServerInfo());

    %>
</body>
</html>
